package demo_09_25_03;

import java.util.Arrays;

/**
 * @author:连志鹏
 * @className:work_05
 * @descrption:
 * @date: 2021/9/25 10:52
 * @version: 0.1
 * @since: 1.8
 */
public class work_05 {

    public static void main(String[] args) {
        int array [] = {2,432,5221,235,2,5352,1,53,5,3,5364,2,2,63,3533,2,53,532,532};
        int sum = 0;
        for (int i = 0; i < array.length; i++) {
            sum = array[i];
            if((array[i]%2)!=0)
                System.out.print(array[i]+" ");
            array[i]*=2;
        }
        System.out.println("元素和"+sum);
        System.out.println(Arrays.toString(array));
    }




}
